package com.logic.landseaserver.persistence.write;

import java.util.Map;

import com.logic.landseaserver.domain.Coupon;

public interface CouponWriteMapper {
    int deleteByPrimaryKey(Coupon coupon);

    int insert(Coupon record);

    int insertSelective(Coupon record);

    int updateByPrimaryKeySelective(Coupon record);

    int updateByPrimaryKey(Coupon record);

    // 更新失效的授权码
    void updateInvalidCoupon(Map<String,Object> paramMap);
    
    /**
     * 
     * [简要描述]：更新使用状态</br>
     * [详细描述]：</br>
     * [作者]：Aaron(2017-10-20)</br>
     *
     * @param mainId
     * @param mainType
     *
     */
    void updateUseStatusByMIdAndType(Map<String,Object> paramMap);
}